package com.akuhome.resource.DO.message;

import com.akuhome.resource.entity.Character;

import java.sql.Timestamp;
import java.util.List;

public class MessageConfig {
    Integer id;
    //触发事件
    String event;
    //发送对象
    List<Character> target;
    //电话(可选,当发送对象为其他时须填写)
    String tel;
    //是否启用
    Boolean enable;
    Timestamp createTime;
    Timestamp updateTime;
    //当前短信模板
    MessageTemplate template;

    public MessageConfig() {
    }

    public MessageConfig(String event, List<Character> target, String tel, Boolean enable) {
        this.event = event;
        this.target = target;
        this.tel = tel;
        this.enable = enable;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getEvent() {
        return event;
    }

    public void setEvent(String event) {
        this.event = event;
    }

    public List<Character> getTarget() {
        return target;
    }

    public void setTarget(List<Character> target) {
        this.target = target;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    public MessageTemplate getTemplate() {
        return template;
    }

    public void setTemplate(MessageTemplate template) {
        this.template = template;
    }
}
